package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 供应商
 * </p>
 *
 * @author wanghai
 * @since 2022-06-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_supplier")
@ApiModel(value="Supplier对象", description="供应商")
public class Supplier extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "供应商名称")
    @TableField("supplier_name")
    private String supplierName;

    @ApiModelProperty(value = "简称")
    @TableField("for_short")
    private String forShort;

    @ApiModelProperty(value = "供应商代码")
    @TableField("supplier_code")
    private String supplierCode;

    @ApiModelProperty(value = "设备型号")
    @TableField("equipment_model")
    private String equipmentModel;

    @ApiModelProperty(value = "供应商地址")
    @TableField("supplier_address")
    private String supplierAddress;

    @ApiModelProperty(value = "0启用1禁用 2失效")
    @TableField("is_disabled")
    private Integer isDisabled;

    @ApiModelProperty(value = "备注说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_at")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_at")
    private Date updatedAt;

    @ApiModelProperty(value = "是否删除 0-正常 1-删除")
    @TableField("is_deleted")
    private boolean isDeleted;

    @ApiModelProperty(value = "企业编号")
    @TableField("sp_id")
    private String spId;


}
